From: Claudio Cambra Date: Thu, 27 Feb 2025 08:21:50 +0000 (+0800) Subject: gui/tray: Add hacky workaround to avoid icon and text for menu items in tray header... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~11^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=67194613185325a9a3ddf855bcb218a38b75a259;p=nextcloud-desktop.git gui/tray: Add hacky workaround to avoid icon and text for menu items in tray header being too close Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/TrayWindowHeader.qml b/src/gui/tray/TrayWindowHeader.qml index a78aab5f8..3fbd8fc53 100644 --- a/src/gui/tray/TrayWindowHeader.qml +++ b/src/gui/tray/TrayWindowHeader.qml @@ -121,7 +121,9 @@ Rectangle { model: UserAppsModel delegate: MenuItem { id: appEntry - text: model.appName + // HACK: Without creating our own component (and killing native styling) + // HACK: we do not have a way to adjust the text and icon spacing. + text: " " + model.appName font.pixelSize: Style.topLinePixelSize icon.source: model.appIconUrl icon.color: palette.windowText